﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HRDEvaluateDateConfig_POP.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.HRDEvaluateDateConfig_POP" %>

<%@ Register src="../Controls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc1" %>
<%@ Register src="../Controls/DatePickerValidation.ascx" tagname="DatePickerValidation" tagprefix="uc2" %>
<%@ Register Src="~/App_UI/Controls/DatePickerValidation.ascx" TagPrefix="uc1" TagName="DatePickerValidation" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<script src="../../Scripts/DatePicker.js"></script>
<Link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css" />
<link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">

    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow)
            oWindow = window.frameElement.radWindow;
        return oWindow;
    }

    function CloseRadWin() {
        var oWnd = GetRadWindow();
        var getYear = document.getElementById('hdfYear').value;
        oWnd.close(getYear);
    }



</script>



<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>

   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
        <AjaxSettings>            
            <telerik:AjaxSetting AjaxControlID="txtRadYear">
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="txtRadYear" />
                    <telerik:AjaxUpdatedControl ControlID="txtRadRound" />   
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="dtpRadRoundStart">
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="dtpRadRoundStart" /> 
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <div class="PanelTopHeader" >
        
        <table width="100%">
            <tr>
                <td></td>
                <td>
                    <asp:LinkButton ID="btnClose" runat="server" CssClass="LinkButtonWhite" 
                            OnClientClick="CloseRadWin()"  > <img alt="" style="border:0px;vertical-align:middle;" src="../Images/Buttons/Refresh.gif" />&nbsp;แสดงข้อมูลทั้งหมด </asp:LinkButton>&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="btnSave" runat="server" CssClass="LinkButtonWhite" 
                         OnClientClick="return confirm('คุณต้องการบันทึกข้อมูลใช่หรือไม่');" 
                        onclick="btnSave_Click" > <img alt="" style="border:0px;vertical-align:middle;" src="../Images/Buttons/saveDisk.gif" />&nbsp;บันทึกข้อมูล </asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>

    <asp:HiddenField ID="hdfYear" runat="server" />

<br />

    <table width="100%">
        <tr>
            <td> 
                &nbsp;&nbsp;&nbsp; <a style="font-weight:bold;">กำหนดรอบการประเมิน :</a>
                <table>
                    <tr>
                        <td width="200px" align="right">ประจำปีที่ : 
                        </td>
                        <td align="left">
                            <telerik:RadNumericTextBox ID="txtRadYear" runat="server" Width="120px" 
                                AutoPostBack="True" MinValue="2500" MaxValue="3000" MaxLength="4" 
                                ShowSpinButtons="true">
                                <NumberFormat DecimalDigits="0" GroupSeparator="" />
                            </telerik:RadNumericTextBox>                            
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredYear" runat="server" Display="Dynamic"
                                ControlToValidate="txtRadYear" ErrorMessage="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr> 
                    <tr>
                        <td width="200px" align="right">รอบที่ :  
                        </td>
                        <td align="left">
                            <telerik:RadNumericTextBox ID="txtRadRound" runat="server" Width="120px" 
                                AutoPostBack="True" MinValue="1" MaxValue="12" MaxLength="4" 
                                ShowSpinButtons="true">
                                <NumberFormat DecimalDigits="0" GroupSeparator="" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>                            
                            <asp:RequiredFieldValidator ID="RequiredRound" runat="server" Display="Dynamic"
                                ControlToValidate="txtRadRound" ErrorMessage="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>                    
                </table>
            </td>
        </tr>
    </table>
<br />

                        &nbsp;&nbsp;&nbsp; <a style="font-weight:bold;">รอบการประเมินระหว่างวันที่ :</a>
                        <table>
                            <tr>
                                <td width="200px" align="right">วันเริ่มต้น : 
                                </td>
                                <td align="left">
                                    <uc1:DatePickerValidation ID="dtpRadRoundStart" runat="server" />
                                </td>
                
                                <td width="200px" align="right">
                                    
                                    วันสิ้นสุด :  
                                </td>
                                <td align="left">
                                    <uc1:DatePickerValidation runat="server" ID="dtpRadRoundEnd" />                             
                                </td>
                            </tr>                    
                        </table>
<br />               
                        &nbsp;&nbsp;&nbsp; <a style="font-weight:bold;">กำหนดวันที่อนุญาตให้ประเมิน :</a>
                    <table>
                        <tr>
                            <td width="200px" align="right">วันเริ่มต้น : 
                            </td>
                            <td align="left">  
                                <uc1:DatePickerValidation ID="dtpRadPermissionStart" runat="server" />                   
                            </td>
                        
                            <td width="200px" align="right">วันสิ้นสุด :  
                            </td>
                            <td align="left">
                                <uc1:DatePickerValidation ID="dtpRadPermissionEnd" runat="server" />    
                            </td>
                        </tr>                    
                    </table>

<br />
    &nbsp;&nbsp;&nbsp; <a style="font-weight:bold;">หมายเหตุ :</a>
<center>
        <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="90%" Height="50px"></asp:TextBox>    
</center>

    </form>
    
</body>
</html>
